#app {

  .main-container {
    min-height: 100%;
    transition: margin-left .28s;

    position: relative;
  }
  .bottom-container{
    margin-left: $base-sidebar-width;
  }
  .right-container{
    background: #EFF3FA;
    width:100%;
  }
  .sidebar-container a {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .sidebar-container {
    -webkit-transition: width .28s;
    transition: width 0.28s;
    width: $base-sidebar-width !important;
    background-color: $base-menu-background;
    height: calc(100vh - 50px);
    position: fixed;
    font-size: 0px;
    //top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 4px 20px 0 rgba(78,142,229,0.1);
    //-webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
    //box-shadow: 2px 0 6px rgba(0,21,41,.35);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }


    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display:block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }
    //红标样式
    .red_icon {
      display: inline-block;
      vertical-align: middle;
      padding: 0 5px;
      line-height: 16px;
      font-weight: normal;
      height: 16px;
      background-color: #F95355;
      color: #fff;
      font-style: normal;
      border-radius: 8px;
      margin-left: 5px;
    }
    .red_icon b {
      font-weight: normal;
      display: block;
      font-size: 12px;
      transform: scale(0.9);
    }
    .blue_icon{
      background-color: #4594FF;
    }
    .no_icon{
      margin-left: 30px;
    }
    .nest-menu .no_icon{
      margin-left: 10px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .el-menu-item {
      height: 40px;
      line-height: 40px;
      font-size: 14px;
      color: #303133;
      padding: 0 20px;
      list-style: none;
      margin-bottom: 0;
      cursor: pointer;
      position: relative;
      -webkit-transition: border-color 0.3s, background-color 0.3s, color 0.3s;
      transition: border-color 0.3s, background-color 0.3s, color 0.3s;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      white-space: nowrap;
    }

    .el-submenu__title {
      height: 44px;
      line-height: 44px;
      font-size: 14px;
      color: #9EA7C0!important;
      padding: 0 20px;
      list-style: none;
      cursor: pointer;
      position: relative;
      -webkit-transition: border-color 0.3s, background-color 0.3s, color 0.3s;
      transition: border-color 0.3s, background-color 0.3s, color 0.3s;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      white-space: nowrap;
    }
    .el-menu-item, .el-submenu__title {
      font-weight: 600;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }
    .left_nav_icon {
      width: 3px;
      height: 40px;
      background-color: #4594FF;
      position: absolute;
      left: 0;
      top: 0;
      display: none;
    }
    .is-active > .left_nav_icon {
      display: block;
    }
    .is-active.submenu-title-noDropdown {
      color: $base-menu-color-active !important;
      background-color: #EEF2F7 !important;
      font-weight: 600;
    }
    // menu hover

    .el-submenu__title{
      &:hover {
        background-color: #ffffff !important;
        color: #4594FF;
        font-weight: 600;
      }
    }

    .submenu-title-noDropdown{
       &:hover{
         background-color: #EEF2F7 !important;
         color: #4594FF;
         font-weight: 600;
       }
    }

    & .theme-dark .is-active > .el-submenu__title {
      color: $base-menu-color-active !important;
      background-color: #EEF2F7 !important;
      font-weight: 600;
    }
    & .theme-dark .is-active.el-submenu > .el-submenu__title {
      color: #9EA7C0 !important;
      background-color: transparent !important;
      font-weight: 600;
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $base-sidebar-width !important;

      &:hover {
        color: #4594FF!important;
        background-color: #EEF2F7 !important;
      }
    }

    //三级导航未选中状态
    & .theme-dark .nest-menu .el-submenu>.el-submenu__title,
    & .theme-dark .el-submenu .el-menu-item {
      color: #354168;
      background-color: #ffffff ;

      &:hover {
        color: #4594FF!important;
        background-color: #EEF2F7 !important;
      }
    }
    .is-active.el-menu-item {
      color: $base-menu-color-active !important;
      background-color: #EEF2F7 !important;
      font-weight: 600;
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 0px !important;
    }

    .bottom-container {
      margin-left: 0px;
    }
    .nav_zhankai {
      display: block;
      //transform: scale(0.9);
    }
    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $base-sidebar-width !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $base-sidebar-width !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$base-sidebar-width, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      color: #4594FF!important;
      background-color: #EEF2F7 !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }


}
